Jlo fixes/rlhistorylogger r w pointer and frequent restarts#22
Open
johannes-lode wants to merge 9 commits intopvbrowser:masterfrom
Open
Conversation
To avoid time calculation errors by mixing absolute time values with relative time value in the same class, the interface was changed for the application of relative amounts of time against absolute points in time. Added interface for simple formatting options of time differences.
Intermediate commit for transfer to another workstation.
Meanwhile added a proxy interface, so the traditional interface of operating with two operands of rlTimeEx is available. One small exception is there of returning double for the difference of two rlTimeEx object by default and returning rlTimeEx objects only on request by casting the second operand to RelativeTime(rltime_object).
By inspecting the logging files on logger start the data loss from deleted ring buffer files is reduced. This is achieved by avoiding the deletion of the oldest of the ring buffer files in case the youngest file is still in time window for further logging events. This way occurred a problem in Windows, where read and write pointer are not independent. So the inspection of the files and writing to the files is done from different file descriptors, opend for the special purpose. By the way reduced this problems with data logging, reopening the log files etc. after a server crash and restart.
jlo-fixes/rlhistorylogger-R-W-pointer-and-frequent-restarts Conflicts: .gitignore - resolved by using incoming rllib/lib/rltime.cpp - resolved by using incoming rllib/lib/rltime.h - resolved by using incoming
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rearrange the ring buffer initialization to reduce data loss on frequent restarts of a logger.